
import { constantRoutes } from '@/router'

const state = {
  menuList: [...constantRoutes]
}
const mutations = {
  updateMenuList(state, asyncRoutes) {
    state.menuList = [...constantRoutes, ...asyncRoutes]
  },
  setRoutes(state, asyncRoutes) {
    state.menuList = asyncRoutes
  }
}
export default {
  namespaced: true,
  state,
  mutations
}
